package com.example.academic_affairs_system.model.vo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

/**
 * 登录返回的信息
 *
 * @author hjx
 * @since 2023/02/01 12:37 PM
 */
@Data
@Builder
@ApiModel("登录返回的信息")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class LoginResponseVO {
  @ApiModelProperty("用户 id")
  @JsonIgnore
  Long userId;

  @ApiModelProperty("用户昵称")
  String nickname;

  @ApiModelProperty("所在的班级")
  String classname;

  @ApiModelProperty("所在的班级职位")
  String position;

  @ApiModelProperty("最后的登录时间")
  String lastTime;

  @ApiModelProperty("登录时的时间戳")
  long loginTimestamp;
}
